<html>
<head>
<link rel="stylesheet" type="text/css" href="<?php echo $this->aurl;?>/style.css">
</head>
<body>
<div class="oh-center">
	<div class="oh-panel-center">
		<?php
			if (oh("simpleform")->onsubmit("loginform")) {	
				$r = oh("auth")->login(
					oh("simpleform.loginform.username"),
					oh("simpleform.loginform.password")
				);
				if ($r) {
					header("Location: index.php");
					die();
				}
			}

			$sf = oh("simpleform");
			$sf	->open("loginform")
				->label("username")->text("username")->br()
				->label("password")->password("password")->br()
				->label("&nbsp;")->submit("submit")
				->close()
				;
		?>
	</div>
</div>
</body>
</html>